<div class="project">
    <div id="main">
        <h1><?php echo $this->translate($this->project->name) ?></h1>
        <h2><?php echo $this->translate($this->project->subtitle) ?></h2>
        <div class="detail"><?php echo $this->translate('Development') ?>: <?php echo $this->project->date ?></div>
    
        <?php if (isset($this->project->description)): ?>
        <div class="description">
            <?php foreach ($this->project->description as $key => $value): ?>
                <p><?php echo $value ?></p>
            <?php endforeach ?>
        </div>
        <?php endif ?>

        <?php if (isset($this->project->images)): ?>
        <ul class="photos no-list">
            <?php foreach ($this->project->images as $key => $value): ?>
            <li>
                <a href="/s/p/<?php echo $value ?>.jpg" rel="lightbox[<?php echo $this->project->name ?>]"><img src="/s/p/m/<?php echo $value ?>.jpg" alt="<?php echo $this->translate('Project') . ' ' . $this->project->name . ' ' . $this->translate('photo') . ' ' . ($key + 1)?>" /></a>
            </li>

            <?php endforeach ?>
        </ul>
        <?php endif ?>

    </div>
    <div id="aside">
        <?php if (isset($this->project->services)): ?>
        <div class="box">
            <h2><?php echo $this->translate('Provided services') ?></h2>
            <ul class="text-listing">
            <?php foreach ($this->project->services as $key => $value): ?>
                <!-- <li><a href="<?php echo $this->url(array(), $value['route']) ?>"><?php echo $this->translate($value['name']) ?></a></li> -->
                <li><?php echo $this->link($value['route']); ?></li>
            <?php endforeach ?>
            </ul>
        </div>
        <?php endif ?>
    
        <?php if (isset($this->project->technology)): ?>
        <div class="box">
            <h2><?php echo $this->translate('Technology we used') ?></h2>
            <ul class="text-listing">
            <?php foreach ($this->project->technology as $key => $value): ?>
                <!-- <li><a href="<?php echo $this->url(array(), $value['route']) ?>"><?php echo $this->translate($value['name']) ?></a></li> -->
                <li><?php echo $this->link($value['route']); ?></li>
            <?php endforeach ?>
            </ul>
        </div>
        <?php endif ?>

        <?php if (isset($this->project->references)): ?>
        <div class="box">
            <h2><?php echo $this->translate('References') ?></h2>
            <ul class="references no-list">
            <?php foreach ($this->project->references as $key => $value): ?>
                <a href="/s/r/<?php echo $value ?>.jpg" rel="lightbox[ref-<?php echo $this->project->name ?>]"><img src="/s/r/m/<?php echo $value ?>.jpg" alt="<?php echo $this->translate('Project') . ' ' . $this->project->name . ' ' . $this->translate('Letter of recommendation') . ' ' . ($key + 1)?>" /></a>
            <?php endforeach ?>
            </ul>
        </div>
        <?php endif ?>
        
        <?php if (isset($this->project->projects)): ?>
        <div class="box">
            <h2><?php echo $this->translate('Other projects for this client') ?></h2>
            <ul class="text-listing">
            <?php foreach ($this->project->projects as $key => $value): ?>
                <!-- <li><a href="<?php echo $this->url(array(), $value['route']) ?>"><?php echo $this->translate($value['name']) ?></a></li> -->
                <li><?php echo $this->link($value['route']); ?></li>
            <?php endforeach ?>
            </ul>
        </div>
        <?php endif ?>
    </div>
</div>